3.1.72 \(\int \frac {d+e x^2+f x^4}{x^2 (a+b x^2+c x^4)^2} \, dx\) [72]

Optimal. Leaf size=399 \[ -\frac {d}{a^2 x}-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\sqrt {c} \left (3 b^2 d-a b e-2 a (5 c d-a f)+\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (3 b^2 d-a b e-2 a (5 c d-a f)-\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {b+\sqrt {b^2-4 a c}}} \]

[Out]

-d/a^2/x-1/2*x*(a*(b^3*d/a-b*(b*e+3*c*d)+a*(b*f+2*c*e))+c*(b^2*d-a*b*e-2*a*(-a*f+c*d))*x^2)/a^2/(-4*a*c+b^2)/(
c*x^4+b*x^2+a)-1/4*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*c^(1/2)*(3*b^2*d-a*b*e-2*a*(-a*f+5*c
*d)+(3*b^3*d-a*b^2*e+12*a^2*c*e-4*a*b*(a*f+4*c*d))/(-4*a*c+b^2)^(1/2))/a^2/(-4*a*c+b^2)*2^(1/2)/(b-(-4*a*c+b^2
)^(1/2))^(1/2)-1/4*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2))*c^(1/2)*(3*b^2*d-a*b*e-2*a*(-a*f+5*c
*d)+(-3*b^3*d+a*b^2*e-12*a^2*c*e+4*a*b*(a*f+4*c*d))/(-4*a*c+b^2)^(1/2))/a^2/(-4*a*c+b^2)*2^(1/2)/(b+(-4*a*c+b^
2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 1.40, antiderivative size = 399, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {1683, 1678, 1180, 211} \begin {gather*} -\frac {\sqrt {c} \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right ) \left (\frac {12 a^2 c e-a b^2 e-4 a b (a f+4 c d)+3 b^3 d}{\sqrt {b^2-4 a c}}-a b e-2 a (5 c d-a f)+3 b^2 d\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right ) \left (-\frac {12 a^2 c e-a b^2 e-4 a b (a f+4 c d)+3 b^3 d}{\sqrt {b^2-4 a c}}-a b e-2 a (5 c d-a f)+3 b^2 d\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {x \left (a \left (\frac {b^3 d}{a}+a (b f+2 c e)-b (b e+3 c d)\right )+c x^2 \left (-a b e-2 a (c d-a f)+b^2 d\right )\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {d}{a^2 x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)^2),x]

[Out]

-(d/(a^2*x)) - (x*(a*((b^3*d)/a - b*(3*c*d + b*e) + a*(2*c*e + b*f)) + c*(b^2*d - a*b*e - 2*a*(c*d - a*f))*x^2
))/(2*a^2*(b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) - (Sqrt[c]*(3*b^2*d - a*b*e - 2*a*(5*c*d - a*f) + (3*b^3*d - a*b^
2*e + 12*a^2*c*e - 4*a*b*(4*c*d + a*f))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*
c]]])/(2*Sqrt[2]*a^2*(b^2 - 4*a*c)*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - (Sqrt[c]*(3*b^2*d - a*b*e - 2*a*(5*c*d - a*f
) - (3*b^3*d - a*b^2*e + 12*a^2*c*e - 4*a*b*(4*c*d + a*f))/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[
b + Sqrt[b^2 - 4*a*c]]])/(2*Sqrt[2]*a^2*(b^2 - 4*a*c)*Sqrt[b + Sqrt[b^2 - 4*a*c]])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1678

Int[(Pq_)*((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d*x
)^m*Pq*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && PolyQ[Pq, x^2] && IGtQ[p, -2]

Rule 1683

Int[(Pq_)*(x_)^(m_)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> With[{d = Coeff[PolynomialRemainde
r[x^m*Pq, a + b*x^2 + c*x^4, x], x, 0], e = Coeff[PolynomialRemainder[x^m*Pq, a + b*x^2 + c*x^4, x], x, 2]}, S
imp[x*(a + b*x^2 + c*x^4)^(p + 1)*((a*b*e - d*(b^2 - 2*a*c) - c*(b*d - 2*a*e)*x^2)/(2*a*(p + 1)*(b^2 - 4*a*c))
), x] + Dist[1/(2*a*(p + 1)*(b^2 - 4*a*c)), Int[x^m*(a + b*x^2 + c*x^4)^(p + 1)*ExpandToSum[(2*a*(p + 1)*(b^2
- 4*a*c)*PolynomialQuotient[x^m*Pq, a + b*x^2 + c*x^4, x])/x^m + (b^2*d*(2*p + 3) - 2*a*c*d*(4*p + 5) - a*b*e)
/x^m + c*(4*p + 7)*(b*d - 2*a*e)*x^(2 - m), x], x], x]] /; FreeQ[{a, b, c}, x] && PolyQ[Pq, x^2] && GtQ[Expon[
Pq, x^2], 1] && NeQ[b^2 - 4*a*c, 0] && LtQ[p, -1] && ILtQ[m/2, 0]

Rubi steps

\begin {align*} \int \frac {d+e x^2+f x^4}{x^2 \left (a+b x^2+c x^4\right )^2} \, dx &=-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\int \frac {-2 \left (b^2-4 a c\right ) d+\frac {\left (b^3 d-a b^2 e+6 a^2 c e-a b (5 c d+a f)\right ) x^2}{a}+\frac {c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^4}{a}}{x^2 \left (a+b x^2+c x^4\right )} \, dx}{2 a \left (b^2-4 a c\right )}\\ &=-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\int \left (\frac {2 \left (-b^2+4 a c\right ) d}{a x^2}+\frac {3 b^3 d-a b^2 e+6 a^2 c e-a b (13 c d+a f)+c \left (3 b^2 d-a b e-2 a (5 c d-a f)\right ) x^2}{a \left (a+b x^2+c x^4\right )}\right ) \, dx}{2 a \left (b^2-4 a c\right )}\\ &=-\frac {d}{a^2 x}-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\int \frac {3 b^3 d-a b^2 e+6 a^2 c e-a b (13 c d+a f)+c \left (3 b^2 d-a b e-2 a (5 c d-a f)\right ) x^2}{a+b x^2+c x^4} \, dx}{2 a^2 \left (b^2-4 a c\right )}\\ &=-\frac {d}{a^2 x}-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\left (c \left (3 b^2 d-a b e-2 a (5 c d-a f)-\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a^2 \left (b^2-4 a c\right )}-\frac {\left (c \left (3 b^2 d-a b e-2 a (5 c d-a f)+\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right )\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a^2 \left (b^2-4 a c\right )}\\ &=-\frac {d}{a^2 x}-\frac {x \left (a \left (\frac {b^3 d}{a}-b (3 c d+b e)+a (2 c e+b f)\right )+c \left (b^2 d-a b e-2 a (c d-a f)\right ) x^2\right )}{2 a^2 \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}-\frac {\sqrt {c} \left (3 b^2 d-a b e-2 a (5 c d-a f)+\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {c} \left (3 b^2 d-a b e-2 a (5 c d-a f)-\frac {3 b^3 d-a b^2 e+12 a^2 c e-4 a b (4 c d+a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{2 \sqrt {2} a^2 \left (b^2-4 a c\right ) \sqrt {b+\sqrt {b^2-4 a c}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.82, size = 444, normalized size = 1.11 \begin {gather*} \frac {-\frac {4 d}{x}-\frac {2 x \left (b^3 d+b^2 \left (-a e+c d x^2\right )+a b \left (a f-c \left (3 d+e x^2\right )\right )+2 a c \left (-c d x^2+a \left (e+f x^2\right )\right )\right )}{\left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac {\sqrt {2} \sqrt {c} \left (-3 b^3 d+b^2 \left (-3 \sqrt {b^2-4 a c} d+a e\right )+a b \left (16 c d+\sqrt {b^2-4 a c} e+4 a f\right )-2 a \left (-5 c \sqrt {b^2-4 a c} d+6 a c e+a \sqrt {b^2-4 a c} f\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\left (b^2-4 a c\right )^{3/2} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \sqrt {c} \left (3 b^3 d-b^2 \left (3 \sqrt {b^2-4 a c} d+a e\right )+a b \left (-16 c d+\sqrt {b^2-4 a c} e-4 a f\right )+2 a \left (5 c \sqrt {b^2-4 a c} d+6 a c e-a \sqrt {b^2-4 a c} f\right )\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\left (b^2-4 a c\right )^{3/2} \sqrt {b+\sqrt {b^2-4 a c}}}}{4 a^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)^2),x]

[Out]

((-4*d)/x - (2*x*(b^3*d + b^2*(-(a*e) + c*d*x^2) + a*b*(a*f - c*(3*d + e*x^2)) + 2*a*c*(-(c*d*x^2) + a*(e + f*
x^2))))/((b^2 - 4*a*c)*(a + b*x^2 + c*x^4)) + (Sqrt[2]*Sqrt[c]*(-3*b^3*d + b^2*(-3*Sqrt[b^2 - 4*a*c]*d + a*e)
+ a*b*(16*c*d + Sqrt[b^2 - 4*a*c]*e + 4*a*f) - 2*a*(-5*c*Sqrt[b^2 - 4*a*c]*d + 6*a*c*e + a*Sqrt[b^2 - 4*a*c]*f
))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/((b^2 - 4*a*c)^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]])
+ (Sqrt[2]*Sqrt[c]*(3*b^3*d - b^2*(3*Sqrt[b^2 - 4*a*c]*d + a*e) + a*b*(-16*c*d + Sqrt[b^2 - 4*a*c]*e - 4*a*f)
+ 2*a*(5*c*Sqrt[b^2 - 4*a*c]*d + 6*a*c*e - a*Sqrt[b^2 - 4*a*c]*f))*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^
2 - 4*a*c]]])/((b^2 - 4*a*c)^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]))/(4*a^2)

________________________________________________________________________________________

Maple [A]
time = 0.11, size = 438, normalized size = 1.10

method result size
default \(\frac {\frac {\frac {c \left (2 a^{2} f -a b e -2 a c d +b^{2} d \right ) x^{3}}{8 a c -2 b^{2}}+\frac {\left (a^{2} b f +2 a^{2} c e -a \,b^{2} e -3 a b c d +b^{3} d \right ) x}{8 a c -2 b^{2}}}{c \,x^{4}+b \,x^{2}+a}+\frac {2 c \left (-\frac {\left (2 a^{2} f \sqrt {-4 a c +b^{2}}-a b e \sqrt {-4 a c +b^{2}}-10 \sqrt {-4 a c +b^{2}}\, a c d +3 \sqrt {-4 a c +b^{2}}\, b^{2} d -4 a^{2} b f +12 a^{2} c e -a \,b^{2} e -16 a b c d +3 b^{3} d \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{8 \sqrt {-4 a c +b^{2}}\, \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}+\frac {\left (2 a^{2} f \sqrt {-4 a c +b^{2}}-a b e \sqrt {-4 a c +b^{2}}-10 \sqrt {-4 a c +b^{2}}\, a c d +3 \sqrt {-4 a c +b^{2}}\, b^{2} d +4 a^{2} b f -12 a^{2} c e +a \,b^{2} e +16 a b c d -3 b^{3} d \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{8 \sqrt {-4 a c +b^{2}}\, \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{4 a c -b^{2}}}{a^{2}}-\frac {d}{a^{2} x}\) \(438\)
risch \(\text {Expression too large to display}\) \(3376\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a)^2,x,method=_RETURNVERBOSE)

[Out]

1/a^2*((1/2*c*(2*a^2*f-a*b*e-2*a*c*d+b^2*d)/(4*a*c-b^2)*x^3+1/2*(a^2*b*f+2*a^2*c*e-a*b^2*e-3*a*b*c*d+b^3*d)/(4
*a*c-b^2)*x)/(c*x^4+b*x^2+a)+2/(4*a*c-b^2)*c*(-1/8*(2*a^2*f*(-4*a*c+b^2)^(1/2)-a*b*e*(-4*a*c+b^2)^(1/2)-10*(-4
*a*c+b^2)^(1/2)*a*c*d+3*(-4*a*c+b^2)^(1/2)*b^2*d-4*a^2*b*f+12*a^2*c*e-a*b^2*e-16*a*b*c*d+3*b^3*d)/(-4*a*c+b^2)
^(1/2)*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))+1/8*(2
*a^2*f*(-4*a*c+b^2)^(1/2)-a*b*e*(-4*a*c+b^2)^(1/2)-10*(-4*a*c+b^2)^(1/2)*a*c*d+3*(-4*a*c+b^2)^(1/2)*b^2*d+4*a^
2*b*f-12*a^2*c*e+a*b^2*e+16*a*b*c*d-3*b^3*d)/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arcta
n(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2))))-d/a^2/x

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a)^2,x, algorithm="maxima")

[Out]

-1/2*((2*a^2*c*f - a*b*c*e + (3*b^2*c - 10*a*c^2)*d)*x^4 + (a^2*b*f - a*b^2*e + 2*a^2*c*e + (3*b^3 - 11*a*b*c)
*d)*x^2 + 2*(a*b^2 - 4*a^2*c)*d)/((a^2*b^2*c - 4*a^3*c^2)*x^5 + (a^2*b^3 - 4*a^3*b*c)*x^3 + (a^3*b^2 - 4*a^4*c
)*x) - 1/2*integrate(-(a^2*b*f + a*b^2*e - 6*a^2*c*e - (2*a^2*c*f - a*b*c*e + (3*b^2*c - 10*a*c^2)*d)*x^2 - (3
*b^3 - 13*a*b*c)*d)/(c*x^4 + b*x^2 + a), x)/(a^2*b^2 - 4*a^3*c)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 13111 vs. \(2 (357) = 714\).
time = 26.38, size = 13111, normalized size = 32.86 \begin {gather*} \text {too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a)^2,x, algorithm="fricas")

[Out]

1/4*(2*(a*b*c*e - 2*a^2*c*f - (3*b^2*c - 10*a*c^2)*d)*x^4 - 2*(a^2*b*f + (3*b^3 - 11*a*b*c)*d - (a*b^2 - 2*a^2
*c)*e)*x^2 + sqrt(1/2)*((a^2*b^2*c - 4*a^3*c^2)*x^5 + (a^2*b^3 - 4*a^3*b*c)*x^3 + (a^3*b^2 - 4*a^4*c)*x)*sqrt(
-((9*b^7 - 105*a*b^5*c + 385*a^2*b^3*c^2 - 420*a^3*b*c^3)*d^2 - 2*(3*a*b^6 - 40*a^2*b^4*c + 150*a^3*b^2*c^2 -
120*a^4*c^3)*d*e + (a^2*b^5 - 15*a^3*b^3*c + 60*a^4*b*c^2)*e^2 + (a^4*b^3 + 12*a^5*b*c)*f^2 - 2*((3*a^2*b^5 -
13*a^3*b^3*c - 12*a^4*b*c^2)*d - (a^3*b^4 - 6*a^4*b^2*c - 24*a^5*c^2)*e)*f + (a^5*b^6 - 12*a^6*b^4*c + 48*a^7*
b^2*c^2 - 64*a^8*c^3)*sqrt((a^8*f^4 + (81*b^8 - 918*a*b^6*c + 3051*a^2*b^4*c^2 - 2550*a^3*b^2*c^3 + 625*a^4*c^
4)*d^4 - 4*(27*a*b^7 - 351*a^2*b^5*c + 1197*a^3*b^3*c^2 - 550*a^4*b*c^3)*d^3*e + 6*(9*a^2*b^6 - 132*a^3*b^4*c
+ 484*a^4*b^2*c^2 - 75*a^5*c^3)*d^2*e^2 - 4*(3*a^3*b^5 - 49*a^4*b^3*c + 198*a^5*b*c^2)*d*e^3 + (a^4*b^4 - 18*a
^5*b^2*c + 81*a^6*c^2)*e^4 + 4*(a^7*b*e - (3*a^6*b^2 + 5*a^7*c)*d)*f^3 + 6*((9*a^4*b^4 + 3*a^5*b^2*c + 25*a^6*
c^2)*d^2 - ...

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x**4+e*x**2+d)/x**2/(c*x**4+b*x**2+a)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 7182 vs. \(2 (366) = 732\).
time = 8.21, size = 7182, normalized size = 18.00 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a)^2,x, algorithm="giac")

[Out]

-1/2*(3*b^2*c*d*x^4 - 10*a*c^2*d*x^4 + 2*a^2*c*f*x^4 - a*b*c*x^4*e + 3*b^3*d*x^2 - 11*a*b*c*d*x^2 + a^2*b*f*x^
2 - a*b^2*x^2*e + 2*a^2*c*x^2*e + 2*a*b^2*d - 8*a^2*c*d)/((c*x^5 + b*x^3 + a*x)*(a^2*b^2 - 4*a^3*c)) + 1/16*((
6*b^4*c^2 - 44*a*b^2*c^3 + 80*a^2*c^4 - 3*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^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c + sqrt(b^2 - 4*a*c)*c)*a^7*b^4*c + 2*sqrt(2)*sqrt(
b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^6*b^5*c - 16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*
a*c)*c)*a^8*b^2*c^2 - 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^7*b^3*c^2 - sqrt(2)*sqrt(b
^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^6*b^4*c^2 + 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*
a*c)*c)*a^7*b^2*c^3 - 2*(b^2 - 4*a*c)*a^6*b^4*c...

________________________________________________________________________________________

Mupad [B]
time = 6.86, size = 2500, normalized size = 6.27 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)^2),x)

[Out]

((x^2*(3*b^3*d - a*b^2*e + a^2*b*f + 2*a^2*c*e - 11*a*b*c*d))/(2*a^2*(4*a*c - b^2)) - d/a + (c*x^4*(3*b^2*d +
2*a^2*f - a*b*e - 10*a*c*d))/(2*a^2*(4*a*c - b^2)))/(a*x + b*x^3 + c*x^5) - atan(((x*(204800*a^12*c^9*d^2 - 73
728*a^13*c^8*e^2 + 8192*a^14*c^7*f^2 + 144*a^6*b^12*c^3*d^2 - 3264*a^7*b^10*c^4*d^2 + 30112*a^8*b^8*c^5*d^2 -
143360*a^9*b^6*c^6*d^2 + 365568*a^10*b^4*c^7*d^2 - 458752*a^11*b^2*c^8*d^2 + 16*a^8*b^10*c^3*e^2 - 416*a^9*b^8
*c^4*e^2 + 4608*a^10*b^6*c^5*e^2 - 25600*a^11*b^4*c^6*e^2 + 69632*a^12*b^2*c^7*e^2 + 160*a^10*b^8*c^3*f^2 - 20
48*a^11*b^6*c^4*f^2 + 9216*a^12*b^4*c^5*f^2 - 16384*a^13*b^2*c^6*f^2 - 81920*a^13*c^8*d*f + 237568*a^12*b*c^8*
d*e + 40960*a^13*b*c^7*e*f - 96*a^7*b^11*c^3*d*e + 2336*a^8*b^9*c^4*d*e - 22528*a^9*b^7*c^5*d*e + 107520*a^10*
b^5*c^6*d*e - 253952*a^11*b^3*c^7*d*e - 96*a^8*b^10*c^3*d*f + 1472*a^9*b^8*c^4*d*f - 7168*a^10*b^6*c^5*d*f + 6
144*a^11*b^4*c^6*d*f + 40960*a^12*b^2*c^7*d*f + 32*a^9*b^9*c^3*e*f - 1024*a^10*b^7*c^4*e*f + 9216*a^11*b^5*c^5
*e*f - 32768*a^12*b^3*c^6*e*f) + ((27*a^3*b^9*c*e^2 - a^2*b^11*e^2 - 9*b^4*d^2*(-(4*a*c - b^2)^9)^(1/2) - a^4*
b^9*f^2 - a^4*f^2*(-(4*a*c - b^2)^9)^(1/2) - 26880*a^6*b*c^6*d^2 - 9*b^13*d^2 + 3840*a^7*b*c^5*e^2 + 9*a^3*c*e
^2*(-(4*a*c - b^2)^9)^(1/2) + 768*a^8*b*c^4*f^2 + 6*a*b^12*d*e - 2077*a^2*b^9*c^2*d^2 + 10656*a^3*b^7*c^3*d^2
- 30240*a^4*b^5*c^4*d^2 + 44800*a^5*b^3*c^5*d^2 - a^2*b^2*e^2*(-(4*a*c - b^2)^9)^(1/2) - 25*a^2*c^2*d^2*(-(4*a
*c - b^2)^9)^(1/2) - 288*a^4*b^7*c^2*e^2 + 1504*a^5*b^5*c^3*e^2 - 3840*a^6*b^3*c^4*e^2 + 96*a^6*b^5*c^2*f^2 -
512*a^7*b^3*c^3*f^2 + 213*a*b^11*c*d^2 + 6*a^2*b^11*d*f + 15360*a^7*c^6*d*e - 2*a^3*b^10*e*f - 3072*a^8*c^5*e*
f + 6*a*b^3*d*e*(-(4*a*c - b^2)^9)^(1/2) - 152*a^2*b^10*c*d*e - 98*a^3*b^9*c*d*f + 1536*a^7*b*c^5*d*f - 2*a^3*
b*e*f*(-(4*a*c - b^2)^9)^(1/2) + 10*a^3*c*d*f*(-(4*a*c - b^2)^9)^(1/2) + 36*a^4*b^8*c*e*f + 51*a*b^2*c*d^2*(-(
4*a*c - b^2)^9)^(1/2) + 1548*a^3*b^8*c^2*d*e - 8064*a^4*b^6*c^3*d*e + 22400*a^5*b^4*c^4*d*e - 30720*a^6*b^2*c^
5*d*e + 6*a^2*b^2*d*f*(-(4*a*c - b^2)^9)^(1/2) + 576*a^4*b^7*c^2*d*f - 1344*a^5*b^5*c^3*d*f + 512*a^6*b^3*c^4*
d*f - 192*a^5*b^6*c^2*e*f + 128*a^6*b^4*c^3*e*f + 1536*a^7*b^2*c^4*e*f - 44*a^2*b*c*d*e*(-(4*a*c - b^2)^9)^(1/
2))/(32*(a^5*b^12 + 4096*a^11*c^6 - 24*a^6*b^10*c + 240*a^7*b^8*c^2 - 1280*a^8*b^6*c^3 + 3840*a^9*b^4*c^4 - 61
44*a^10*b^2*c^5)))^(1/2)*(x*((27*a^3*b^9*c*e^2 - a^2*b^11*e^2 - 9*b^4*d^2*(-(4*a*c - b^2)^9)^(1/2) - a^4*b^9*f
^2 - a^4*f^2*(-(4*a*c - b^2)^9)^(1/2) - 26880*a^6*b*c^6*d^2 - 9*b^13*d^2 + 3840*a^7*b*c^5*e^2 + 9*a^3*c*e^2*(-
(4*a*c - b^2)^9)^(1/2) + 768*a^8*b*c^4*f^2 + 6*a*b^12*d*e - 2077*a^2*b^9*c^2*d^2 + 10656*a^3*b^7*c^3*d^2 - 302
40*a^4*b^5*c^4*d^2 + 44800*a^5*b^3*c^5*d^2 - a^2*b^2*e^2*(-(4*a*c - b^2)^9)^(1/2) - 25*a^2*c^2*d^2*(-(4*a*c -
b^2)^9)^(1/2) - 288*a^4*b^7*c^2*e^2 + 1504*a^5*b^5*c^3*e^2 - 3840*a^6*b^3*c^4*e^2 + 96*a^6*b^5*c^2*f^2 - 512*a
^7*b^3*c^3*f^2 + 213*a*b^11*c*d^2 + 6*a^2*b^11*d*f + 15360*a^7*c^6*d*e - 2*a^3*b^10*e*f - 3072*a^8*c^5*e*f + 6
*a*b^3*d*e*(-(4*a*c - b^2)^9)^(1/2) - 152*a^2*b^10*c*d*e - 98*a^3*b^9*c*d*f + 1536*a^7*b*c^5*d*f - 2*a^3*b*e*f
*(-(4*a*c - b^2)^9)^(1/2) + 10*a^3*c*d*f*(-(4*a*c - b^2)^9)^(1/2) + 36*a^4*b^8*c*e*f + 51*a*b^2*c*d^2*(-(4*a*c
 - b^2)^9)^(1/2) + 1548*a^3*b^8*c^2*d*e - 8064*a^4*b^6*c^3*d*e + 22400*a^5*b^4*c^4*d*e - 30720*a^6*b^2*c^5*d*e
 + 6*a^2*b^2*d*f*(-(4*a*c - b^2)^9)^(1/2) + 576*a^4*b^7*c^2*d*f - 1344*a^5*b^5*c^3*d*f + 512*a^6*b^3*c^4*d*f -
 192*a^5*b^6*c^2*e*f + 128*a^6*b^4*c^3*e*f + 1536*a^7*b^2*c^4*e*f - 44*a^2*b*c*d*e*(-(4*a*c - b^2)^9)^(1/2))/(
32*(a^5*b^12 + 4096*a^11*c^6 - 24*a^6*b^10*c + 240*a^7*b^8*c^2 - 1280*a^8*b^6*c^3 + 3840*a^9*b^4*c^4 - 6144*a^
10*b^2*c^5)))^(1/2)*(1048576*a^16*b*c^8 + 256*a^10*b^13*c^2 - 6144*a^11*b^11*c^3 + 61440*a^12*b^9*c^4 - 327680
*a^13*b^7*c^5 + 983040*a^14*b^5*c^6 - 1572864*a^15*b^3*c^7) - 393216*a^15*c^8*e + 192*a^8*b^13*c^2*d - 4672*a^
9*b^11*c^3*d + 47360*a^10*b^9*c^4*d - 256000*a^11*b^7*c^5*d + 778240*a^12*b^5*c^6*d - 1261568*a^13*b^3*c^7*d -
 64*a^9*b^12*c^2*e + 1664*a^10*b^10*c^3*e - 17920*a^11*b^8*c^4*e + 102400*a^12*b^6*c^5*e - 327680*a^13*b^4*c^6
*e + 557056*a^14*b^2*c^7*e - 64*a^10*b^11*c^2*f + 1280*a^11*b^9*c^3*f - 10240*a^12*b^7*c^4*f + 40960*a^13*b^5*
c^5*f - 81920*a^14*b^3*c^6*f + 851968*a^14*b*c^8*d + 65536*a^15*b*c^7*f))*((27*a^3*b^9*c*e^2 - a^2*b^11*e^2 -
9*b^4*d^2*(-(4*a*c - b^2)^9)^(1/2) - a^4*b^9*f^2 - a^4*f^2*(-(4*a*c - b^2)^9)^(1/2) - 26880*a^6*b*c^6*d^2 - 9*
b^13*d^2 + 3840*a^7*b*c^5*e^2 + 9*a^3*c*e^2*(-(4*a*c - b^2)^9)^(1/2) + 768*a^8*b*c^4*f^2 + 6*a*b^12*d*e - 2077
*a^2*b^9*c^2*d^2 + 10656*a^3*b^7*c^3*d^2 - 30240*a^4*b^5*c^4*d^2 + 44800*a^5*b^3*c^5*d^2 - a^2*b^2*e^2*(-(4*a*
c - b^2)^9)^(1/2) - 25*a^2*c^2*d^2*(-(4*a*c - b^2)^9)^(1/2) - 288*a^4*b^7*c^2*e^2 + 1504*a^5*b^5*c^3*e^2 - 384
0*a^6*b^3*c^4*e^2 + 96*a^6*b^5*c^2*f^2 - 512*a^7*b^3*c^3*f^2 + 213*a*b^11*c*d^2 + 6*a^2*b^11*d*f + 15360*a^7*c
^6*d*e - 2*a^3*b^10*e*f - 3072*a^8*c^5*e*f + 6*a*b^3*d*e*(-(4*a*c - b^2)^9)^(1/2) - 152*a^2*b^10*c*d*e - 98*a^
3*b^9*c*d*f + 1536*a^7*b*c^5*d*f - 2*a^3*b*e*f*...

________________________________________________________________________________________